/* 处理切换切换时的屏幕闪烁 此为 vue渲染问题， body 标签上增加 v-cloak */
[v-cloak] {
    display: none !important;
}


/* ====================================================  */
/* ====================================================  */
/* ===================== 顶部- 样式 =================== */
/* ====================================================  */
/* ====================================================  */

.doc-title-box {
    text-align: left;
    margin-left: 8%;
    margin-top: 12px;
}


.xj-top .doc-title {
    /* 动态配置颜色 */
    /*color: #ff0517;*/
    font-size: 24px;
    text-decoration: none !important;
}


/**
 * 顶部菜单
 */
.xj-top .xj-menu-box {
    float: right;
    margin-right: 12px;
}

/**
 * 顶部 功能靠右
 */
.xj-top .xj-menu-box .el-menu {
    float: right;
    /*right: 20px;*/
    /*margin-right: 0%;*/
}

/**
 * 顶部 功能靠右 （处理菜单内容排序）
 */
.xj-top .xj-menu-box .el-menu li {
    float: left;
    /*right: 20px;*/
    /*margin-right: 0%;*/
}

/**
 * 固定 顶部菜单
 */
.xj-top {
    width: 100%;
    top: 0;
    position: fixed;
    border-bottom: 1px solid #dd1c1f;
    z-index: 9999;
    background-color: #FFFFFF;
}


/* 去掉下划线 */
a {
    text-decoration: none !important;
}

/*未访问的链接颜色*/
/*a:link {*/
/*    color: #dd1c1f !important;;*/
/*}*/


/*已访问的链接颜色*/
/*.xj-menu-box a:visited {*/
/*    color: red;*/
/*}*/


/*鼠标移动到链接的颜色*/
/*a:hover {*/
/*    color: #03040a !important;;*/
/*    text-decoration: underline;*/
/*}*/


/*鼠标点击时的颜色*/
/*a:active {*/
/*    color: #dd1c1f !important;;*/
/*}*/


/**
  * 搜索
 */
.xj-top .search-box {
    display: inline-block;
    position: relative;
    /*margin-left: 5px;*/
    right: 0;
    margin-top: 12px;

}

/**
  * 搜索
 */
.search-box input {
    cursor: text;
    width: 12rem;
    height: 2.2rem;
    color: #4e6e8e;
    display: inline-block;
    border: 1px solid #cfd4db;
    border-radius: 2rem;
    font-size: .9rem;
    line-height: 2.2rem;
    padding: 0 .6rem 0 2.5rem;
    outline: none;
    transition: all .2s ease;
    background: #fff url(/static/assets/icon/search.png) .8rem .6rem no-repeat;
    background-size: 1rem;
}

.search-box-results {
    top: 3.2rem;
    position: fixed;
    width: 40% !important;
    max-height: 305px;
    overflow: auto !important;
    padding-top: 15px;
    padding-bottom: 15px;
}

.search-box-results > div {
    padding-left: 15px;
    line-height: 30px;
}

.search-box-results div a {
    color: #606266;
    font-size: 14px;
}

.search-box-results-div {
    background-color: #efebeb;
}

.search-box-results div:hover {
    background-color: #efebeb;
}

/*鼠标移动到链接的颜色*/
.search-box-results div a:hover {
    /*color: #dd1c1f;*/
}

/*鼠标点击时的颜色*/
.search-box-results div a:active {
    color: #dd1c1f;
}


/**
 * 底部
 */
.xj-bottom {
    /*width: 100%;*/
    /*position: absolute;*/
    /*z-index: 1;*/
}

.xj-bottom li {
    list-style-type: none;
}

.xj-bottom .links p {
    line-height: 10px;
}

.xj-bottom .bottom-contents {
    margin-top: 30px;
}

.xj-bottom .bottom-contents p {
    line-height: 12px;
}


/* ====================================================  */
/* ====================================================  */
/* ===================== 底部样式 =========================  */
/* ====================================================  */
/* ====================================================  */

.xj-error {
    /*height: 600px;*/
    /*text-align: center;*/
    /*font-size: 30px;*/
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    -moz-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    -o-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
}

.xj-error .xj-error-code {
    font-size: 100px;
}

.xj-error .xj-error-msg {
    font-size: 40px;
}


/* 菜单切换 */
.xj-top .top-menu-icon {
    display: none;
}

.xj-top .left-menu-icon{
    display: none;
}

/* 移动端兼容 */
@media screen and (max-width: 980px) {
    .doc-title-box {
        margin-left: 0%;
    }

    .xj-top {
        width: 100%;
        padding-bottom: 20px;
    }


    /* 隐藏标题 */
    .xj-top .doc-title {
        display: none;
    }

    /* 文档 tree 展开按钮 */
    .xj-top .left-menu-icon {
        display: block;
        padding-top: 18px;
        background: url('/static/assets/icon/menu.png') no-repeat center;
        background-size: 36px 36px;
    }

    /* 菜单切换 */
    .xj-top .top-menu-icon {
        display: block;
        position: fixed;
        right: 20px;
        margin-top: -6.5%;
        width: 40px;

        background: url('/static/assets/icon/分类.png') no-repeat center;
        background-size: 50px 50px;
    }

    /* 隐藏菜单 */
    #el-menu-top {
        /*opacity: 0;*/
        display: none;
    }

    /* 修改搜索结果展示 */
    .search-box-results {
        top: 3.2rem;
        position: fixed;
        width: 100% !important;
        max-height: 305px;
        overflow: auto !important;
        padding-top: 15px;
        padding-bottom: 15px;
    }
}
